package com.ruoyi.timeoff.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.timeoff.mapper.HrTimeoffApplicationMapper;
import com.ruoyi.timeoff.domain.HrTimeoffApplication;
import com.ruoyi.timeoff.service.IHrTimeoffApplicationService;

/**
 * 调休申请Service业务层处理
 * 
 * @author gy
 * @date 2025-05-20
 */
@Service
public class HrTimeoffApplicationServiceImpl implements IHrTimeoffApplicationService 
{
    @Autowired
    private HrTimeoffApplicationMapper hrTimeoffApplicationMapper;

    /**
     * 查询调休申请
     * 
     * @param id 调休申请主键
     * @return 调休申请
     */
    @Override
    public HrTimeoffApplication selectHrTimeoffApplicationById(Long id)
    {
        return hrTimeoffApplicationMapper.selectHrTimeoffApplicationById(id);
    }

    /**
     * 查询调休申请列表
     * 
     * @param hrTimeoffApplication 调休申请
     * @return 调休申请
     */
    @Override
    public List<HrTimeoffApplication> selectHrTimeoffApplicationList(HrTimeoffApplication hrTimeoffApplication)
    {
        return hrTimeoffApplicationMapper.selectHrTimeoffApplicationList(hrTimeoffApplication);
    }

    /**
     * 新增调休申请
     * 
     * @param hrTimeoffApplication 调休申请
     * @return 结果
     */
    @Override
    public int insertHrTimeoffApplication(HrTimeoffApplication hrTimeoffApplication)
    {
        return hrTimeoffApplicationMapper.insertHrTimeoffApplication(hrTimeoffApplication);
    }

    /**
     * 修改调休申请
     * 
     * @param hrTimeoffApplication 调休申请
     * @return 结果
     */
    @Override
    public int updateHrTimeoffApplication(HrTimeoffApplication hrTimeoffApplication)
    {
        return hrTimeoffApplicationMapper.updateHrTimeoffApplication(hrTimeoffApplication);
    }

    /**
     * 批量删除调休申请
     * 
     * @param ids 需要删除的调休申请主键
     * @return 结果
     */
    @Override
    public int deleteHrTimeoffApplicationByIds(Long[] ids)
    {
        return hrTimeoffApplicationMapper.deleteHrTimeoffApplicationByIds(ids);
    }

    /**
     * 删除调休申请信息
     * 
     * @param id 调休申请主键
     * @return 结果
     */
    @Override
    public int deleteHrTimeoffApplicationById(Long id)
    {
        return hrTimeoffApplicationMapper.deleteHrTimeoffApplicationById(id);
    }
}
